import os


def getPath(file=''):
    path, _ = os.path.split(file)
    return path


def getName(file=''):
    _, filename = os.path.split(file)
    name, _ = os.path.splitext(filename)
    return name


def getExtension(file=''):
    _, filename = os.path.split(file)
    _, extension = os.path.splitext(filename)
    return extension

